home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15623 < prev    next >
Encoding:
Text File  |  1996-08-05  |  903 b   |  30 lines

  1. Newsgroups: comp.lang.c++
  2. Path: cdf.toronto.edu!news
  3. From: p a u l <a209dowm@cdf.utoronto.ca>
  4. Subject: creating an ostrstream object screws up the istream object!
  5. Content-Type: text/plain; charset=us-ascii
  6. Message-ID: <DpI5IK.DBG@cdf.toronto.edu>
  7. Sender: news@cdf.toronto.edu (Usenet News)
  8. Nntp-Posting-Host: sat
  9. Content-Transfer-Encoding: 7bit
  10. Organization: Computing Disciplines Facility, University of Toronto
  11. Mime-Version: 1.0
  12. Date: Sun, 7 Apr 1996 17:20:41 GMT
  13. X-Mailer: Mozilla 1.1N (X11; I; SunOS 5.3 sun4c)
  14. X-Url: news:comp.lang.c++#3167AC81.ABD322C@ksl.co.il
  15.  
  16. in this function I can read & write to the in_stream with no problem
  17.  
  18. int object_name::func_name (ifstream &in_stream);
  19.  
  20. but if I declare this variable:
  21.  
  22. ostrstream temp_str_stream(temp_string, 2000);  // note this is oSTRstream
  23.  
  24. then the ifstream object stops working (ie. all reads from it return NULL)
  25.  
  26. any ideas?  thanks.
  27.  
  28. Paul.
  29.  
  30.